/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dp.vo;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author wyr
 */
@Entity
@Table(name = "t_sms_report")
//@NamedQueries({@NamedQuery(name = "TSmsReport.findAll", query = "SELECT t FROM TSmsReport t"), @NamedQuery(name = "TSmsReport.findById", query = "SELECT t FROM TSmsReport t WHERE t.id = :id"), @NamedQuery(name = "TSmsReport.findByServiceCode", query = "SELECT t FROM TSmsReport t WHERE t.serviceCode = :serviceCode"), @NamedQuery(name = "TSmsReport.findByLinked", query = "SELECT t FROM TSmsReport t WHERE t.linked = :linked"), @NamedQuery(name = "TSmsReport.findByStatus", query = "SELECT t FROM TSmsReport t WHERE t.status = :status"), @NamedQuery(name = "TSmsReport.findByPhoneNum", query = "SELECT t FROM TSmsReport t WHERE t.phoneNum = :phoneNum"), @NamedQuery(name = "TSmsReport.findByTranscationid", query = "SELECT t FROM TSmsReport t WHERE t.transcationid = :transcationid")})
public class TSmsReport implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "id")
    private Long id;
    @Column(name = "service_code")
    private String serviceCode;
    @Column(name = "linked")
    private String linked;
    @Column(name = "status")
    private String status;
    @Column(name = "phoneNum")
    private String phoneNum;
    @Column(name = "transcationid")
    private String transcationid;

    public TSmsReport() {
    }

    public TSmsReport(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getServiceCode() {
        return serviceCode;
    }

    public void setServiceCode(String serviceCode) {
        this.serviceCode = serviceCode;
    }

    public String getLinked() {
        return linked;
    }

    public void setLinked(String linked) {
        this.linked = linked;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getPhoneNum() {
        return phoneNum;
    }

    public void setPhoneNum(String phoneNum) {
        this.phoneNum = phoneNum;
    }

    public String getTranscationid() {
        return transcationid;
    }

    public void setTranscationid(String transcationid) {
        this.transcationid = transcationid;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TSmsReport)) {
            return false;
        }
        TSmsReport other = (TSmsReport) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.dp.vo.TSmsReport[id=" + id + "]";
    }

}
